package com.atguigu.contacts;

public class ArrayUtils {
	public static void main(String[] args) {
		
	}
	public int length = 0;
	public int getMax (int ... arr) {
		int max = arr[0];
		for (int i = 1; i < arr.length; i++) {
			if (arr[i]>max) max = arr[i];
		}
		return max;
	}
	public int getMax (int a,int b) {
		int max = a;
		if (b>a) max = b;
		return max;
	}
	
}
